<?php
require_once '../sub/init.php';
header("Cache-control: private");
require_once 'chkUadm.php';
require_once ZEAI.'cache/config_up.php';
require_once ZEAI.'sub/zeai_up_func.php';
require_once ZEAI.'cache/config_vip.php';
require_once ZEAI.'cache/config_reg.php';
require_once ZEAI.'cache/config_index.php';
require_once ZEAI.'cache/udata.php';
$urole = json_decode($_ZEAI['urole'],true);
sort($urole);
$TG_set = json_decode($_REG['TG_set'],true);
$user_bbs = json_decode($_ZEAI['user_bbs'],true);
if($submitok=='ajax_pic_path_s_up'){
	if (ifpostpic($file['tmp_name'])){
		$dbname = setphotodbname('tmp',$file['tmp_name'],$session_uid.'_');
		if (!up_send($file,$dbname,0,$_UP['upMsize'],'1500*1500'))json_exit(array('flag'=>0,'msg'=>'图片写入失败'));
		$dbname=setpath_s($dbname);
		AddLog('【注册设置】上传海报->url:'.$dbname);
		json_exit(array('flag'=>1,'msg'=>'上传成功','dbname'=>$dbname));
	}else{
		json_exit(array('flag'=>0,'msg'=>'zeai_tmp_name_error'));
	}
}elseif($submitok == 'ajax_tmp_del'){
	$url = str_replace($_ZEAI['up2']."/","",$pathurl);
	if(!empty($url))@up_send_admindel($url.'|'.smb($url,'m').'|'.smb($url,'b'),$delvar);
	exit;
}elseif($submitok == 'ajax_datareload'){
	$data_disable=array('tag1','tag2','age','mob','weixin_pic');
	$rt = $db->query("SELECT fieldname FROM ".__TBL_UDATA__." WHERE flag=1 ORDER BY px DESC,id DESC");
	while($tmprows = $db->fetch_array($rt,'name')){
		if (strstr($tmprows['fieldname'],'crm_') || in_array($tmprows['fieldname'],$data_disable) )continue;
		$data_data[]=$tmprows['fieldname'];
	}
	$data_data[]='mate';
	$_REG['reg_data_px']=(is_array($data_data))?implode(',',$data_data):'';
	cache_mod_config($_REG,'config_reg','_REG');
	json_exit(array('flag'=>1,'msg'=>'操作成功'));
}elseif($submitok=='ajax_photo_show_path_up'){
	if (ifpostpic($file['tmp_name'])){
		$dbname = setphotodbname('tmp',$file['tmp_name'],$session_uid.'photo_');
		if (!up_send($file,$dbname,0,$_UP['upBsize']))json_exit(array('flag'=>0,'msg'=>'图片写入失败'));
		AddLog('【前台头像显示权限】上传图片->url:'.$dbname);
		json_exit(array('flag'=>1,'msg'=>'上传成功','dbname'=>$dbname));
	}else{
		json_exit(array('flag'=>0,'msg'=>'zeai_tmp_name_error'));
	}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.tipadmlist{padding:0 10px;border:#eee 1px solid;background-color:#F5F6FA;margin-bottom:10px;text-align:center;line-height:150%;}
.tipadmlist li{width:150px;text-align:left;height:100px;text-align:center;display:inline-block}
.tipadmlist li img{margin-right:6px;display:block;margin:15px auto 5px auto}
.tipadmlist .brr{margin:15px 0;padding-top:15px;border-top:#eee 1px solid;line-height:200%;color:#999}
.table .photo_show_css tr td{border:0}

</style>
</head>
<link href="css/main.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css">
<script src="<?php echo HOST;?>/res/www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<script src="js/Sortable1.6.1.js"></script>
<script>var up2='<?php echo UP;?>',upMaxMB=<?php echo $_UP['upMaxMB']; ?>;</script>
<script src="js/up.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<body class="body">
<?php if($ifback==1){?><a href="javascript:zeai.back();" class="ifback ico" title="返回上一页">&#xeaca;</a><?php }?>
<form id="ZEAIFORM" name="ZEAIFORM" method="post">
<!------------------用户注册选项------------------>
<?php if ($t == 1){
if(!in_array('switchs_reg',$QXARR))exit(noauth());	
?>
<style>
.table .tdL{width:200px}
.table tr th{color:#009688}
</style>
  <table class="table size2 " style="width:1111px;margin:20px 0 0 20px">
	<tr><th colspan="2" align="left">注册开关</th></tr>
	<tr>
		<td class="tdL">新用户注册帐号状态</td>
		<td class="tdR">
        <input type="radio" name="reg_flag" id="reg_flag1" class="radioskin" value="1"<?php echo ($_REG['reg_flag'] == 1)?' checked':'';?>><label for="reg_flag1" class="radioskin-label"><i class="i1"></i><b class="W150 ">正常注册</b></label>
        <input type="radio" name="reg_flag" id="reg_flag3" class="radioskin" value="3"<?php echo ($_REG['reg_flag'] == 3)?' checked':'';?>><label for="reg_flag3" class="radioskin-label"><i class="i1"></i><b class="W150 ">关闭新用户注册</b></label>
        <input type="radio" name="reg_flag" id="reg_flag2" class="radioskin" value="2"<?php echo ($_REG['reg_flag'] == 2)?' checked':'';?> disabled><label for="reg_flag2" class="radioskin-label"><i class="i1"></i><b class="W150 ">需要审核(暂停使用)</b></label>
		<br><span class="tips2 S12">推荐【正常注册】（注册后可以进入个人管理中心”我的“），<font class="Cf00">无特殊情况选【正常注册】</font><br>如果选择【需要审核】，新用户注册后将不能登录进入个人管理中心“我的”，啥都干不了，只有主后台【用户管理】点“帐号审核”以后才可以登录</span>
        </td>
	</tr>
	<tr>
		<td class="tdL" style="line-height:normal">首次关注公众号后<br>强制注册资料后进入</td>
	  <td class="tdR">
        <table class="table0" style="margin:0">
        <tr>
        <td align="left"><input type="checkbox" name="gzflag2" id="gzflag2" class="switch" value="1"<?php echo ($_REG['gzflag2'] == 1)?' checked':'';?>><label for="gzflag2" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></td>
        <td align="left">
        <span class="tips">开启后，首次关注公众号后，将不能登录系统（用户状态：关注未注册），必须完善资料绑定登录帐号手机密码后进入，<font class="Cf00">无特殊情况建议开启</font></span><br>
        <span class="tips">关闭后，首次关注公众号后，资料不全也可以登录系统操作，快捷进入</span>
        </td>
        </tr>
        </table>      
     </td>
	</tr>
	<tr>
		<td class="tdL">付费注册</td>
		<td class="tdR">
        <?php echo udata('sex',1);?> <input name="regmoney1" type="text" class="W80" maxlength="6" value="<?php echo $_REG['regmoney1'];?>"> 元　　<?php echo udata('sex',2);?> <input name="regmoney2" type="text" class="W80" maxlength="6" value="<?php echo $_REG['regmoney2'];?>"> 元<br>
        <span class="tips S12">填为0免费注册，大于0将需要支付成功后进入，否则帐号状态为【注册未完成】无法进入，<font class="Cf00">无特殊情况建议填0</font></span></td>
	</tr>

    <tr><th colspan="2" align="left" >注册步骤/资料选项</th></tr>
	<tr>
		<td class="tdL">手机端注册风格</td>
		<td class="tdR lineH150">
            <input type="radio" name="reg_style" id="reg_style1" class="radioskin" value="1"<?php echo ($_REG['reg_style'] == 1)?' checked':'';?>><label for="reg_style1" class="radioskin-label"><i class="i1"></i><b class="W50 ">单页面</b></label><span class="tips2 S12">用户资料选项合并页面提交注册，推荐此模式，用户体验较好，可完美解决登录注册一键进入</span><br><br>
            <input type="radio" name="reg_style" id="reg_style2" class="radioskin" value="2"<?php echo ($_REG['reg_style'] == 2)?' checked':'';?>><label for="reg_style2" class="radioskin-label"><i class="i1"></i><b class="W50 ">分步式</b></label><span class="tips2 S12">用户资料选项一步一步分若干个页面完成</span>
        </td>
	</tr>
    
	<tr>
		<td class="tdL">手机端注册页面顶部海报图片<br>只对分步式注册风格有效</td>
		<td class="tdR lineH150">
            <div class="picli100" id="picli_path">
              <li class="add" id="path_add"></li>
              <?php if(!empty($_REG['reg_banner'])){
                    echo '<li><img src="'.$_ZEAI['up2'].'/'.$_REG['reg_banner'].'"><i></i></li><span class="tips textmiddle"><br><br>先删除后更换</span>';
                }?>
            </div>
            <?php if(empty($_REG['reg_banner'])){?><span class="tips" ><br><br>请配上一张海报图，更具吸引力，推荐尺寸：750×432像数，图片格式.gif/.jpg/.png，推荐65%品质jpg，留空将使用默认图片</span><?php }?>
        </td>
	</tr>
    
	<tr>
	  <td class="tdL">手机端注册资料选项</td>
	  <td class="tdR lineH150">
			<style>
            .stepbox .stepli{margin-top:5px}
            .stepbox .stepli li{padding:5px 10px;float:left;margin:5px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:3px}
            </style>
            <dd class="stepbox" id="stepbox">
                <div class="stepli">
                    <?php
					$data_disable=array('tag1','tag2','age','mob','weixin_pic');
					function data_data_title($data_data,$f) {foreach($data_data as $v){if($v['fieldname'] == $f)return $v['title'];}}
					$rt = $db->query("SELECT fieldname,title FROM ".__TBL_UDATA__." WHERE flag=1 ORDER BY px DESC,id DESC");
					while($tmprows = $db->fetch_array($rt,'name')){
						if (strstr($tmprows['fieldname'],'crm_') || in_array($tmprows['fieldname'],$data_disable) || $tmprows['fieldname']=='weixin_pic')continue;
						$data_data[]=$tmprows;
					}
					$data_data[]=array('fieldname'=>'mate','title'=>'择偶要求');
                    $reg_dataARR    = explode(',',$_REG['reg_data']);
                    $reg_data_pxARR = explode(',',$_REG['reg_data_px']);
                    if (count($reg_data_pxARR) >= 1 && is_array($reg_data_pxARR)){
                        foreach ($reg_data_pxARR as $k=>$V) {
                            $bW = ($V=='parent' || $V=='marrytime' || $V=='parentslive')?'W120':'W80';
							 $T=data_data_title($data_data,$V);
							 $T=($V=='sex')?$T.'<font class="Cf00">(必选)</font>':$T;?>
                            <li class="<?php echo $bW;?>"><input type="checkbox" name="reg_data[]" id="reg_data_<?php echo $V;?>" class="checkskin reg_data" value="<?php echo $V;?>"<?php echo (in_array($V,$reg_dataARR) || $V=='sex')?' checked':'';?>><label for="reg_data_<?php echo $V;if($V=='sex')echo 'ZEAI.CN';?>" class="checkskin-label"><i class="i1"></i><b class="<?php echo $bW;?>"><?php echo $T;?></b></label></li>
                            <?php
                        }
                    }
                    ?>
                </div>
                <div class="clear"></div>
            </dd>
            <font class="S12 C999">可以按住不放拖动项目调整前后顺序，选中请勾选，选中将出现在注册页面，否则不显示</font>
            <div><font class="S12 C999">如果【资料属性】增减，上面没有显示，可以重置载入，重置后请重新排序</font> <button type="button" class="btn size1" onClick="datareload()">重置载入</button></div>
      </td>
    </tr>
    
    <tr><td class="tdL">微信通知管理员注册信息</td><td class="tdR">
    <div class='tipadmlist'>
	<?php
	$tipadmlist=explode(',',$_REG['tipadmlist']);
    $rt=$db->query("SELECT id,truename,path_s,sex FROM ".__TBL_ADMIN__." WHERE flag=1 AND subscribe=1 AND openid<>'' ");
    $total = $db->num_rows($rt);
    if ($total == 0) {
        echo "<br><font class='Cf00'>..暂无管理员/红娘..</font><br>";
    } else {
        for($i=1;$i<=$total;$i++) {
            $rows = $db->fetch_array($rt,'num');
            if(!$rows) break;
            $admid   = $rows[0];
            $truename = dataIO($rows[1],'out');
			$path_s   = $rows[2];
			$sex      = $rows[3];
			if(!empty($path_s)){
				$path_s_str = '<img src="'.$_ZEAI['up2'].'/'.$path_s.'" class="photo_s">';
			}else{
				$path_s_str = '<img src="'.HOST.'/res/photo_s'.$sex.'.png'.'" class="photo_s">';
			}
			?>
            <li><?php echo $path_s_str;?><input type="checkbox" name="tipadmlist[]" id="tipadmlist_<?php echo $admid;?>" class="checkskin" value="<?php echo $admid;?>"<?php echo (in_array($admid,$tipadmlist))?' checked':'';?>><label for="tipadmlist_<?php echo $admid;?>" class="checkskin-label"><i class="i1"></i><b><?php echo $truename;?></b></label><div class="S12 C999">ID:<?php echo $admid;?></div></li>
            <?php
        }
    }
    ?>
    <div class="clear"></div>
    <div class="brr">
        <span class="tips2 picmiddle">用户注册提交后，管理员或红娘在微信公众号会收到通知信息，方便快速审核资料　　注：必须绑定关注后生效，绑定方法如下：</span><br><b>主后台</b>顶部【工作台】<img src="images/d2.gif">左下角【管理员用户】<img src="images/d2.gif">点【修改】进入绑定，如果没有请先新增
    	<div class="clear"></div>
    </div>
    </div>
	</td></tr>
    

    <tr><th colspan="2" align="left">注册/登录帐号类型</th></tr>
	<tr>
		<td class="tdL">注册/登录帐号形式</td>
		<td class="tdR">
			<input type="radio" name="reg_kind" id="reg1_kind1" class="radioskin" value="1"<?php echo ($_REG['reg_kind'] == 1)?' checked':'';?>><label for="reg1_kind1" class="radioskin-label"><i class="i1"></i><b class="W150 ">手机(验证码)</b></label>
			<input type="radio" name="reg_kind" id="reg1_kind2" class="radioskin" value="2"<?php echo ($_REG['reg_kind'] == 2)?' checked':'';?>><label for="reg1_kind2" class="radioskin-label"><i class="i1"></i><b class="W300 ">帐号(ID、用户名、手机号)＋密码</b></label>
            
			<input type="radio" name="reg_kind" id="reg1_kind3" class="radioskin" value="3"<?php echo ($_REG['reg_kind'] == 3)?' checked':'';?> disabled><label for="reg1_kind3" class="radioskin-label"><i class="i1"></i><b class="W200 ">手机＋用户名＋密码(暂停使用)</b></label>
            

	  </td>
	</tr>
	<tr>
		<td class="tdL">第三方登录</td>
		<td class="tdR">
			<input type="checkbox" name="reg_3login_qq" id="reg_3login_1" class="checkskin " value="1"<?php echo ($_REG['reg_3login_qq'] == 1)?' checked':'';?>><label for="reg_3login_1" class="checkskin-label"><i class="i1"></i><b class="W100">QQ登录</b></label>
			<input type="checkbox" name="reg_3login_wx" id="reg_3login_2" class="checkskin " value="1"<?php echo ($_REG['reg_3login_wx'] == 1)?' checked':'';?>><label for="reg_3login_2" class="checkskin-label"><i class="i1"></i><b class="W100">微信登录</b></label>
		</td>
	</tr>
    
    
	<tr><th colspan="2" align="left">默认初始值</th></tr>
	<tr>
		<td class="tdL">新用户初始<?php echo $_ZEAI['loveB'];?></td>
		<td class="tdR"><input name="reg_loveb" type="text" class="W50" maxlength="7" value="<?php echo $_REG['reg_loveb'];?>"> <?php echo $_ZEAI['loveB'];?> <span class="tips S12">设为0不送</span></td>
	</tr>
	<tr>
		<td class="tdL">新用户默认用户组</td>
		<td class="tdR">
        	<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            	?>
            <tr>
            <td align="left"><input type="radio" name="reg_grade" id="reg_grade<?php echo $grade;?>" class="radioskin" value="<?php echo $grade;?>"<?php echo ($_REG['reg_grade'] == $grade)?' checked':'';?>><label for="reg_grade<?php echo $grade;?>" class="radioskin-label"><i class="i1"></i><b><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle;font-size:14px"><?php echo $RV['t'];?></font></b></label>
</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>        
		</td>
	</tr>
    <input name="submitok" type="hidden" value="cache_reg">
    <input name="uu" type="hidden" value="<?php echo $session_uid;?>">
    <input name="pp" type="hidden" value="<?php echo $session_pwd;?>">
    <input name="reg_data_px" id="reg_data_px" type="hidden" value="<?php echo $reg_data_px;?>">
    <input name="path_s" id="path_s" type="hidden" value="" />
</table>
<br><br><br><br><br>
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
<script>
function datareload(){
	zeai.confirm('确定要重置么？重置后将载入最新全部数据资料选项，请重新调整顺序和勾选',function(){
		zeai.ajax({url:'switchs'+zeai.ajxext+'submitok=ajax_datareload'},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(0);zeai.msg(rs.msg);
			if(rs.flag==1){setTimeout(function(){location.reload(true);},1000);}
		});
	});
}
function drag_init(){
	(function (){
		[].forEach.call(stepbox.getElementsByClassName('stepli'), function (el){
			Sortable.create(el, {
				group: 'zeai_reg',
				animation:150
			});
		});
	})();
}
drag_init();
save.onclick = function(){
	var DATAPX=[];
	zeai.listEach('.reg_data',function(obj){
		DATAPX.push(obj.value);
	});
	reg_data_px.value=DATAPX.join(",");
	zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){var rs=zeai.jsoneval(e);
		zeai.msg(rs.msg);//zeai.alert(rs.msg);
		setTimeout(function(){location.reload(true);},1000);
	});
}
/**/
function path_s_mod(){
	var i=zeai.tag(picli_path,'i')[0],img=zeai.tag(picli_path,'img')[0];
	if(zeai.empty(i))return;
	path_add.hide();
	var src=img.src.replace(up2,'');
	path_s.value=src;
	i.onclick = function(){zeai.confirm('亲~~确认删除么？',function(){
		img.parentNode.remove();path_add.show();path_s.value='';
		zeai.ajax({url:'switchs'+zeai.ajxext+'submitok=ajax_tmp_del',data:{pathurl:src}});
	});}
	img.onclick = function(){parent.piczoom(up2+src.replace('_s.','_b.'));}
}
path_s_mod();
zeai.photoUp({
	btnobj:path_add,
	upMaxMB:upMaxMB,
	url:"switchs"+zeai.extname,
	submitok:"ajax_pic_path_s_up",
	end:function(rs){
		zeai.msg(0);zeai.msg(rs.msg);
		if (rs.flag == 1){
			picli_path.append('<li><img src="'+up2+rs.dbname+'"><i></i></li>');
			path_s.value=rs.dbname;
			path_add.hide();
			var i=zeai.tag(o(picli_path),'i')[0],img=zeai.tag(o(picli_path),'img')[0];
			i.onclick = function(){zeai.confirm('亲~~确认删除么？',function(){
				img.parentNode.remove();path_add.show();path_s.value='';
				zeai.ajax({url:'switchs'+zeai.ajxext+'submitok=ajax_tmp_del',data:{pathurl:img.src}});
			});}
			img.onclick = function(){parent.piczoom(up2+rs.dbname.replace('_s.','_b.'));}
		}
	}
});
</script>





<!------------------爱豆和收费机制------------------>
<?php }elseif($t == 2){
	
if(!in_array('switchs_loveb',$QXARR))exit(noauth());
?>
<style>
.table .tdL{width:150px}
.table .tdR{min-width:400px}
span.tips{font-size:12px}
.table0 td{font-size:14px;padding:5px 0}
.table0 td input[type="text"]{margin:0 5px}
</style>
<table class="table size2" style="width:1111px;margin:20px 0 50px 20px">

<!--查看联系方式-->
	<?php
	$contact_loveb = json_decode($_VIP['contact_loveb'],true);
	$contact_daylooknum = json_decode($_VIP['contact_daylooknum'],true);
	?>
	<tr><th colspan="4" align="left" class="tiaose">联系方式解锁（包含互换操作）</th></tr>
	<tr>
		<td class="tdL">同级查看</td>
		<td colspan="3" class="tdR">
        <input type="checkbox" name="contact_level" id="contact_level" class="switch" value="1"<?php echo ($_VIP['contact_level'] == 1)?' checked':'';?>><label for="contact_level" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>
		　<span class="tips">（说明：只能高级别权重解锁同级或低的，低的不能解锁）</span>
        </td>
	</tr>    
	<tr>
		<td class="tdL">每天解锁总人数</td>
		<td class="tdR">
        	<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td width="100" align="left"><input name="contact_daylooknum_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $contact_daylooknum[$grade];?>"> 人</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
		</td>
		<td class="tdL">解锁按次计费</td>
		<td class="tdR">
<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td align="left"><input name="contact_loveb_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $contact_loveb[$grade];?>"> <?php echo $_ZEAI['loveB'];?>/次</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
		
        </td>
	</tr>



<!--查看联系方式 結束-->
    
    
    <!--聊天解锁-->
	<?php
	$chat_loveb = json_decode($_VIP['chat_loveb'],true);
	$chat_daylooknum = json_decode($_VIP['chat_daylooknum'],true);
	?>
	<tr><th height="40" colspan="4" align="left" valign="bottom" class="tiaose">聊天解锁</th></tr>
	<tr>
		<td class="tdL">同级查看</td>
		<td colspan="3" class="tdR">
        <input type="checkbox" name="chat_level" id="chat_level" class="switch" value="1"<?php echo ($_VIP['chat_level'] == 1)?' checked':'';?>><label for="chat_level" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>
		　<span class="tips">（说明：开启后，只能高级别权重解锁同级或低的，低的不能解锁）</span>
        </td>
	</tr>
	<tr>
		<td class="tdL">每天解锁总人数</td>
		<td class="tdR">
        	<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td width="100" align="left"><input name="chat_daylooknum_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $chat_daylooknum[$grade];?>"> 人</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
		</td>
	  <td class="tdL">解锁按次计费</td>
		<td class="tdR">
<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td align="left"><input name="chat_loveb_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $chat_loveb[$grade];?>"> <?php echo $_ZEAI['loveB'];?>/次</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
		
      </td>
	</tr>


	<!--聊天解锁 结束-->
    
    
    <!--礼物兑换-->
	<tr><th height="40" colspan="4" align="left" valign="bottom" class="tiaose">礼物兑换</th></tr>
	<tr>
		<td class="tdL">兑换到账户币种</td>
		<td colspan="3" class="tdR">
        <input type="radio" name="gift_dhkind" id="gift_dhkind1" class="radioskin" value="money"<?php echo ($_VIP['gift_dhkind'] == 'money')?' checked':'';?>><label for="gift_dhkind1" class="radioskin-label"><i class="i1"></i><b class="W180">余额账户(人民币)</b>　<img src="images/d2.gif">折扣 <input name="gift_dhmoney_num" type="text" class="W50" maxlength="4" value="<?php echo $_VIP['gift_dhmoney_num'];?>">
        </label>
        <span class="tips">说明：大于0小于等于1，填1为原价兑换；例如兑换了100元，填0.95相当于95折实际到账95元<br>开启此功能，请确定【单身用户余额账户】已开启　<a href="switchs.php?t=3&top=1080&ifback=1" class="size btn size1">进入设置</a></span>
        
        
        <div style="height:8px"></div>
        <input type="radio" name="gift_dhkind" id="gift_dhkind2" class="radioskin" value="loveb"<?php echo ($_VIP['gift_dhkind'] == 'loveb')?' checked':'';?>><label for="gift_dhkind2" class="radioskin-label"><i class="i1"></i><b class="W180"><?php echo $_ZEAI['loveB'];?>账户</b>　<img src="images/d2.gif">折扣 <input name="gift_dhloveb_num" type="text" class="W50" maxlength="4" value="<?php echo $_VIP['gift_dhloveb_num'];?>"></label>

		　<span class="tips">说明：大于0小于等于1，填1为原价兑换；例如礼物价格为1000<?php echo $_ZEAI['loveB'];?>，填0.95相当于95折实际到账950个<?php echo $_ZEAI['loveB'];?></span>
        </td>
	</tr>
	<!--充值爱豆折扣-->
	<?php
	$loveb_buy = json_decode($_VIP['loveb_buy'],true);
	?>
	<tr><th height="40" colspan="4" align="left" valign="bottom" class="tiaose">其他设置</th></tr>
	<tr>
		<td class="tdL"><?php echo $_ZEAI['loveB'];?>余额换算比例</td>
		<td class="tdR">1：<input name="loveBrate" type="text" class="W50" maxlength="7" value="<?php echo $_ZEAI['loveBrate'];?>">  <span class="tips">推荐100，如1元=100<?php echo $_ZEAI['loveB'];?>，填大于0正整数</span></td>
		<td class="tdL">新用户注册赠送</td>
		<td class="tdR"><input name="reg_loveb" type="text" class="W50" maxlength="7" value="<?php echo $_REG['reg_loveb'];?>"> <?php echo $_ZEAI['loveB'];?> <span class="tips">设为0不送</span></td>
	</tr>
    <!--充值列表选项-->
	<tr>
		<td class="tdL"><?php echo $_ZEAI['loveB'];?>充值列表选项</td>
		<td colspan="3" class="tdR">
<input style="font-family:Verdana, Geneva, sans-serif" name="loveb_czlist" type="text" class="W400" maxlength="100" value="<?php echo @implode(",",json_decode($_VIP['loveb_czlist'],true));?>"><div class="tips2">说明：数字（正整数）请以英文半角逗号隔开，如：<font class="blue">100,500,10000,50000,100000,200000</font>，最低100，选项要是100的整数倍，关闭充值请留空</div>
        </td>
	</tr>
    <!--签到数目-->
	<tr>
		<td class="tdL">签到送<?php echo $_ZEAI['loveB'];?></td>
		<td colspan="3" class="tdR"><input style="font-family:Verdana, Geneva, sans-serif" name="sign_numlist" type="text" class="W400" maxlength="100" value="<?php echo @implode(",",json_decode($_VIP['sign_numlist'],true));?>"><div class="tips2">说明：数字（正整数）请以英文半角逗号隔开，如：<font class="blue">2,9,18,48,188</font>，用户签到后将随机得到其中一个数的<?php echo $_ZEAI['loveB'];?>，关闭签到请留空</div></td>
	</tr>
	<tr>
		<td class="tdL">用户冒泡排名</td>
		<td colspan="3" class="tdR"><input name="push_index" type="text" class="W50" maxlength="7" value="<?php echo $_VIP['push_index'];?>"> <?php echo $_ZEAI['loveB'];?> <span class="tips">设为0免费冒泡，冒泡相当于刷新更新一下自己，将在会员列表中排最前面，主要应用于老会员沉入海底，让他们冒泡浮到海面</span></td>
	</tr>
    <tr>
		<td class="tdL">在线充值<?php echo $_ZEAI['loveB'];?>折扣</td>
		<td class="tdR">
        <?php
            if (is_array($urole) && count($urole)>0){
            ?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td width="100" align="left"><input name="loveb_buy_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $loveb_buy[$grade];?>"></td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
        	<span class="tips">说明：1为原价不打折，如：0.95（相当于95折）</span>
        </td>
		<td class="tdL"></td>
		<td class="tdR"></td>
	</tr>
    <!--相册容量-->
	<?php $photo_num = json_decode($_VIP['photo_num'],true);?>
	<tr>
		<td class="tdL">相册容量</td>
		<td class="tdR">
        	<?php if (is_array($urole) && count($urole)>0){?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td width="100" align="left"><input name="photo_num_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $photo_num[$grade];?>"> 张</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
        </td>
		<td class="tdL">视频容量</td>
		<td class="tdR">
		<?php
		$video_num = json_decode($_VIP['video_num'],true);
		if (is_array($urole) && count($urole)>0){ ?>
            <table class="table0" style="margin:0">
            <?php
            foreach($urole as $RV){
                $grade = $RV['g'];
            ?>
            <tr>
            <td align="left"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></td>
            <td width="100" align="left"><input name="video_num_<?php echo $grade;?>" type="text" class="W50" maxlength="5" value="<?php echo $video_num[$grade];?>"> 个</td>
            </tr>
            <?php }?>
            </table>
            <?php }else{
                echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";
            }
            ?>
        </td>
	</tr>
    <!--做任务奖励-->
    <?php $task_loveb = json_decode($_VIP['task_loveb'],true);?>
	<tr style="display:none">
		<td class="tdL">做任务奖励<?php echo $_ZEAI['loveB'];?></td>
		<td colspan="3" class="tdR">
      		<table class="table0" style="margin:0">
      		  <tr>
      		    <td width="120">完善资料80%以上</td>
      		    <td width="100" align="left"><input name="task_loveb_myinfo" type="text" class="W50" maxlength="5" value="<?php echo $task_loveb['myinfo'];?>"> <?php echo $_ZEAI['loveB'];?></td>
   		      </tr>
      		  <tr>
      		    <td width="120">上传形象照</td>
      		    <td width="100" align="left"><input name="task_loveb_photom" type="text" class="W50" maxlength="5" value="<?php echo $task_loveb['photom'];?>"> <?php echo $_ZEAI['loveB'];?></td>
   		      </tr>
      		  <tr>
      		    <td width="120">每完成1项实名认证</td>
      		    <td width="100" align="left"><input name="task_loveb_rz" type="text" class="W50" maxlength="5" value="<?php echo $task_loveb['rz'];?>"> <?php echo $_ZEAI['loveB'];?></td>
   		      </tr>
      		  <tr>
      		    <td width="120">每上传1张相册</td>
      		    <td width="100" align="left"><input name="task_loveb_photo" type="text" class="W50" maxlength="5" value="<?php echo $task_loveb['photo'];?>"> <?php echo $_ZEAI['loveB'];?></td>
   		      </tr>
      		  <tr>
      		    <td width="120">每上传1个视频</td>
      		    <td width="100" align="left"><input name="task_loveb_video" type="text" class="W50" maxlength="5" value="<?php echo $task_loveb['video'];?>"> <?php echo $_ZEAI['loveB'];?></td>
   		      </tr>
	      </table>
      	</td>
	</tr>
    
    
    <!--保存结束-->
</table>
		<input name="submitok" type="hidden" value="cache_vip">
		<input name="uu" id="uu" type="hidden" value="<?php echo $session_uid;?>">
		<input name="pp" id="pp" type="hidden" value="<?php echo $session_pwd;?>">

<br><br><br><br><br>
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
<script>
	save.onclick = function(){
		zeai.msg('正在更新中',{time:30});
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){
			//location.reload(true);
			var rs=zeai.jsoneval(e);zeai.msg(0);zeai.alert(rs.msg,'switchs.php?t=2');
		});
	}
</script>

<!----------------审核机制设置------------------>
<?php }elseif($t == 3){

if(!in_array('switchs_shkg',$QXARR))exit(noauth());	
	
?>
<?php $switch = json_decode($_ZEAI['switch'],true);?>
<style>
.table .tdL{width:200px}
.tips{font-size:12px}
td.tdLbgHUI{background-color:#eee}
</style>

<table class="table size2" style="min-width:1111px;margin:20px 0 100px 20px">
	<tr><th align="left" colspan="2" class="tiaose">全局功能设置</th></tr>
    
	<tr><td class="tdL ">游客浏览个人主页</td><td class="tdR">
        <input type="checkbox" name="YKviewU" id="YKviewU" class="switch" value="1"<?php echo ($_VIP['YKviewU'] == 1)?' checked':'';?>><label for="YKviewU" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
        <span class="tips S12">开启后，游客可以浏览个人主页，关闭后跳转到登录注册页</span> 
    </td></tr>
	<tr><td class="tdL ">用户浏览个人主页</td><td class="tdR">
		<style>
        .stepbox2 .stepli2{margin-top:5px}
        .stepbox2 .stepli2 li{padding:5px 10px;float:left;margin:5px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:3px}
        </style>
        <dd class="stepbox2" id="stepbox2">
            <div class="stepli2">
                <?php
                $viewhomepage_dataARR    = explode(',',$_VIP['viewhomepage_data']);
                $viewhomepage_data_pxARR = explode(',',$_VIP['viewhomepage_data_px']);
                if (count($viewhomepage_data_pxARR) >= 1 && is_array($viewhomepage_data_pxARR)){
                    foreach ($viewhomepage_data_pxARR as $k=>$V) {
                        ?>
                        <li><input type="checkbox" name="viewhomepage_data[]" id="viewhomepage_data_<?php echo $V;?>" class="checkskin viewhomepage" value="<?php echo $V;?>"<?php echo (in_array($V,$viewhomepage_dataARR))?' checked':'';?>><label for="viewhomepage_data_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i>
                        <b class="<?php ($V == 'bfb')?'W200':'W100';?>"><?php echo chatContact_data_title($V);?>
                        <?php if ($V == 'bfb'){?> <input name="viewhomepage_bfb_num" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($_VIP['viewhomepage_bfb_num']);?>"> %<?php }?>
                        </b></label></li>
                        <?php
                    }
                }
                ?>
            </div>
            <div class="clear"></div>
        </dd>
        <font class="S12 C999">可以按住不放拖动项目调整前后顺序，系统检查规则(从左到右)，选中请勾选，选中将进行验证和检查，不符合将不能解锁（自动弹出引导页面完善），如全不选将忽略检查</font>
        <div class="S12 Cf00">注：此功能必须在上面【游客浏览个人主页】功能关闭后生效</div>
        <input name="viewhomepage_data_px" id="viewhomepage_data_px" type="hidden" value="<?php echo $_VIP['viewhomepage_data_px'];?>">
    </td></tr>

	<tr><td class="tdL tdLbgHUI">用户自己隐藏头像</td><td class="tdR">
        <input type="checkbox" name="hidephoto" id="hidephoto" class="switch" value="1"<?php echo ($_VIP['hidephoto'] == 1)?' checked':'';?>><label for="hidephoto" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
        <span class="tips S12">开启后，手机端【我的】<img src="images/d2.gif" class="picmiddle">【设置】出现隐藏开关选项，关闭后不显示</span> 
    </td></tr>

	<tr><td class="tdL tdLbgHUI">用户自己隐藏资料</td><td class="tdR">
        <input type="checkbox" name="hidedata" id="hidedata" class="switch" value="1"<?php echo ($_VIP['hidedata'] == 1)?' checked':'';?>><label for="hidedata" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
        <span class="tips S12">开启后，手机端【我的】<img src="images/d2.gif" class="picmiddle">【设置】出现隐藏开关选项，关闭后不显示</span> 
    </td></tr>

	<tr><td class="tdL tdLbgHUI">用户自己注销资料</td><td class="tdR">
        <input type="checkbox" name="hidedel" id="hidedel" class="switch" value="1"<?php echo ($_VIP['hidedel'] == 1)?' checked':'';?>><label for="hidedel" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
        <span class="tips S12">开启后，手机端【我的】<img src="images/d2.gif" class="picmiddle">【设置】出现注销按钮，关闭后不显示</span> 　　　
        注销收费 <input name="hidedel_rmb" type="text" class="W50 FVerdana" maxlength="4" value="<?php echo $_VIP['hidedel_rmb'];?>"> 元<span class="tips">推荐10元，填0免费注销</span><br>
        <span class="tips">注：注销只是软删除进入回收站，也就是锁定账户（不能登录也不显示），后台【用户管理】可以恢复至正常状态</span>
    </td></tr>
    
	<tr><td class="tdL tdLbgHUI">用户隐私设置选项</td><td class="tdR">
        <input type="checkbox" name="hideprivacy" id="hideprivacy" class="switch" value="1"<?php echo ($_VIP['hideprivacy'] == 1)?' checked':'';?>><label for="hideprivacy" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
        <span class="tips S12">开启后，手机端和电脑端【微信/微信二维码/QQ/邮箱】<img src="images/d2.gif" class="picmiddle">【隐私设置】出现对应隐私开关，关闭后不显示</span> 
    </td></tr>    
	<!--解锁聊天/联系方式-->
	<tr><td class="tdL">解锁聊天/联系方式</td><td class="tdR">
		<style>
        .stepbox .stepli{margin-top:5px}
        .stepbox .stepli li{padding:5px 10px;float:left;margin:5px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:3px}
        .FVerdana{background-color:#fff}
        </style>
        <dd class="stepbox" id="stepbox">
            <div class="stepli">
                <?php
                $chatContact_dataARR    = explode(',',$_VIP['chatContact_data']);
                $chatContact_data_pxARR = explode(',',$_VIP['chatContact_data_px']);
                if (count($chatContact_data_pxARR) >= 1 && is_array($chatContact_data_pxARR)){
                    foreach ($chatContact_data_pxARR as $k=>$V) {
                        ?>
                        <li><input type="checkbox" name="chatContact_data[]" id="chatContact_data_<?php echo $V;?>" class="checkskin chatContact" value="<?php echo $V;?>"<?php echo (in_array($V,$chatContact_dataARR))?' checked':'';?>><label for="chatContact_data_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i>
                        <b class="<?php ($V == 'bfb')?'W200':'W100';?>"><?php echo chatContact_data_title($V);?>
                        <?php if ($V == 'bfb'){?> <input name="chatContact_bfb_num" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($_VIP['chatContact_bfb_num']);?>"> %<?php }?>
                        </b></label></li>
                        <?php
                    }
                }
                ?>
            </div>
            <div class="clear"></div>
        </dd>
        <font class="S12 C999">可以按住不放拖动项目调整前后顺序，系统检查规则(从左到右)，选中请勾选，选中将进行验证和检查，不符合将不能解锁（自动弹出引导页面完善），如全不选将忽略检查</font>
        <input name="chatContact_data_px" id="chatContact_data_px" type="hidden" value="<?php echo $_VIP['chatContact_data_px'];?>">
    </td></tr>
    
    
    
    <!--打招呼-->
	<tr><td class="tdL">向对方打招呼</td><td align="left" class="tdR">
		<style>
        .stepbox .stepli3{margin-top:5px}
        .stepbox .stepli3 li{height:32px;padding:5px 10px;float:left;margin:5px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:3px}
        .FVerdana{background-color:#fff}
        </style>
        <dd class="stepbox" id="stepbox3">
            <div class="stepli3">
                <?php
                $hi_dataARR    = explode(',',$_VIP['hi_data']);
                $hi_data_pxARR = explode(',',$_VIP['hi_data_px']);
                if (count($hi_data_pxARR) >= 1 && is_array($hi_data_pxARR)){
                    foreach ($hi_data_pxARR as $k=>$V) {?>
                        <li><input type="checkbox" name="hi_data[]" id="hi_data_<?php echo $V;?>" class="checkskin hi" value="<?php echo $V;?>"<?php echo (in_array($V,$hi_dataARR))?' checked':'';?>><label for="hi_data_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i>
                        <b class="<?php ($V == 'bfb')?'W200':'W100';?>"><?php echo chatContact_data_title($V);?>
                        <?php if ($V == 'bfb'){?> <input name="hi_bfb_num" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($_VIP['hi_bfb_num']);?>"> %<?php }?>
                        </b></label></li>
                        <?php
                    }
                }
                ?>
            </div>
            <div class="clear"></div>
        </dd>
        <font class="S12 C999">可以按住不放拖动项目调整前后顺序，系统检查规则(从左到右)，选中请勾选，选中将进行验证和检查，不符合将不能打招呼（自动弹出引导页面完善），如全不选将忽略检查</font>
        <input name="hi_data_px" id="hi_data_px" type="hidden" value="<?php echo $_VIP['hi_data_px'];?>">
    </td></tr>
    
	<tr><td class="tdL tdLbgHUI">谁看过我微信通知</td><td class="tdR">
        <input type="radio" name="ifViewPushsex" id="ifViewPushsex1" class="radioskin" value="1"<?php echo ($_VIP['ifViewPushsex'] == 1)?' checked':'';?>>
        <label for="ifViewPushsex1" class="radioskin-label"><i class="i1"></i><b class="W100 S14">男生</b></label>
        
        <input type="radio" name="ifViewPushsex" id="ifViewPushsex2" class="radioskin" value="2"<?php echo ($_VIP['ifViewPushsex'] == 2)?' checked':'';?>>
        <label for="ifViewPushsex2" class="radioskin-label"><i class="i1"></i><b class="W100 S14">女生</b></label>

        <input type="radio" name="ifViewPushsex" id="ifViewPushsex0" class="radioskin" value="0"<?php echo ($_VIP['ifViewPushsex'] == 0)?' checked':'';?>>
        <label for="ifViewPushsex0" class="radioskin-label"><i class="i1"></i><b class="W100 S14">男生＋女生</b></label>
        
        <span class="tips S12">用户需关注公众号后才能正确接收，同性浏览不发送</span> 
    </td></tr>

    <!--前台头像显示权限-->
	<tr>
		<td class="tdL">前台头像显示权限</td>
	  	<td class="tdR" style="padding:10px">
		<?php
		$p_s = json_decode($_ZEAI['photo_show'],true);
		$photo_show_grade = (empty($p_s['grade']))?array():$p_s['grade'];
		$photo_showARR    = (empty($p_s['ed']))?array():$p_s['ed'];
		$photo_show_pxARR = $p_s['px'];
		?>
        <dd class="stepbox" style="margin-bottom:10px">
            <div class="stepli3">
                <?php
                if (count($photo_show_pxARR) >= 1 && is_array($photo_show_pxARR)){
                    foreach ($photo_show_pxARR as $V) {?>
                        <li>
                            <input type="checkbox" name="photo_show[]" id="photo_show_<?php echo $V;?>" class="checkskin" value="<?php echo $V;?>"<?php echo (in_array($V,$photo_showARR))?' checked':'';?>><label for="photo_show_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i>
                            <b><?php echo chatContact_data_title($V);?>
                            <?php if ($V == 'bfb'){?>：<input name="photo_show_bfb_num" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($p_s['bfb_num']);?>"> %<?php }?>
                            </b></label><?php
							if ($V == 'grade' && is_array($urole) && count($urole)>0){
								echo '：　';
								foreach($urole as $RV){$grade = $RV['g'];
								//if($RV['f']==0)continue;
								?>
								<input type="checkbox" name="photo_show_grade[]" id="photo_show_grade_<?php echo $grade;?>" class="checkskin" value="<?php echo $grade;?>"<?php echo (in_array($grade,$photo_show_grade))?' checked':'';?>><label for="photo_show_grade_<?php echo $grade;?>" class="checkskin-label"><i class="i1"></i><b class="W120"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></b></label><?php
								}
							}?>

                        </li><?php
                    }
                }?>
            </div>
            <div class="clear"></div>
        </dd>
       	<div class="clear"></div>
        <font class="S12 C999">选中请勾选，选中将进行验证和检查，全部符合勾选条件才显示，如全不选将忽略检查</font>
        
        <table border="0" class="photo_show_css">
          <tr>
            <td colspan="5">
        无权查看时，头像显示类型：
        <input type="radio" name="photo_show_kind" id="photo_show_kind1" class="radioskin" value="1"<?php echo ($p_s['kind'] == 1)?' checked':'';?>>
        <label for="photo_show_kind1" class="radioskin-label"><i class="i1"></i><b class="W100 S14">模糊</b></label>
        
        <input type="radio" name="photo_show_kind" id="photo_show_kind2" class="radioskin" value="2"<?php echo ($p_s['kind'] == 2)?' checked':'';?>>
        <label for="photo_show_kind2" class="radioskin-label"><i class="i1"></i><b class="W100 S14">自定义</b></label>
            </td>
            </tr>
          <tr>
            <td width="20">&nbsp;男</td>
            <td width="150">
            <div class="picli60" id="p_s_box1">
              <li class="add" id="p_s_btn1"></li>
              <?php
                $pspath_s1 = $p_s['path1'];
                if(!empty($pspath_s1)){
                    echo '<li><img src="'.UP.$pspath_s1.'"><i></i></li><span class="tips">先删除后更换</span>';
                }?>
            </div>
            </td>
            <td width="10">&nbsp;</td>
            <td width="20">女</td>
            <td width="150">
            <div class="picli60" id="p_s_box2">
              <li class="add" id="p_s_btn2"></li>
              <?php
                $pspath_s2 = $p_s['path2'];
                if(!empty($pspath_s2)){
                    echo '<li><img src="'.UP.$pspath_s2.'"><i></i></li><span class="tips">先删除后更换</span>';
                }?>
            </div>
            </td>
          </tr>
          <tr>
            <td colspan="5"><span class="tips" style="display:inline-block;line-height:150%;padding-top:12px">自定义时，显示该图片，最大尺寸<?php echo $_UP['upBsize'];?>像素；格式gif/jpg/png，推荐65%品质jpg，100KB以内</span></td>
            </tr>
        </table>
        <input name="photo_show_path1" id="photo_show_path1" type="hidden" value="" />
        <input name="photo_show_path2" id="photo_show_path2" type="hidden" value="" />
        <script>
		adm_path_up({boxid:o(p_s_box1),btnid:o(p_s_btn1),inputid:o(photo_show_path1),url:'switchs.php',submitok_add:'ajax_photo_show_path_up'});
        adm_path_up({boxid:o(p_s_box2),btnid:o(p_s_btn2),inputid:o(photo_show_path2),url:'switchs.php',submitok_add:'ajax_photo_show_path_up'});
        </script>
        </td>
	</tr>


    <!--手机端开启更多大图浏览效果-->
	<tr>
		<td class="tdL">手机端满屏大图切换</td>
	  	<td class="tdR">
            <input type="checkbox" name="iModuleU_bigmore" id="iModuleU_bigmore" class="switch" value="1"<?php echo ($_INDEX['iModuleU_bigmore'] == 1)?' checked':'';?>><label for="iModuleU_bigmore" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>      <span class="tips">开启后，在手机端首页（多模块风格）点击【更多会员】，将出现满屏大图左右滑动切换展示效果（左右切换用户，上滑加关注，下滑取消关注），关闭后传统列表展示</span>   
        </td>
	</tr>
    
    
    <!--强制完善资料-->
	<tr>
		<td class="tdL">强制跳转完善资料</td>
	  	<td class="tdR">
            <input type="checkbox" name="force_data" id="force_data" class="switch" value="1"<?php echo ($switch['force']['data'] == 1)?' checked':'';?>><label for="force_data" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，在手机端点击【我的】进行跳转</span>
            　　　完善度 <input name="force_data_bfb" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($switch['force']['data_bfb']);?>">％　　
            <span class="tips">推荐60％，个人资料低于此完善度将强制跳转到修改页面</span>
      </td>
	</tr>
    <!--强制上传形象照-->
	<tr>
		<td class="tdL">强制跳转上传头像</td>
	  	<td class="tdR">
            <input type="checkbox" name="force_photom" id="force_photom" class="switch" value="1"<?php echo ($switch['force']['photom'] == 1)?' checked':'';?>><label for="force_photom" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，在手机端点击【我的】进行跳转</span>
        </td>
	</tr>
    <!--强制手机验证-->
	<tr>
		<td class="tdL">强制跳转手机验证</td>
	  	<td class="tdR">
            <input type="checkbox" name="force_mob" id="force_mob" class="switch" value="1"<?php echo ($switch['force']['mob'] == 1)?' checked':'';?>><label for="force_mob" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，在手机端点击【我的】进行跳转</span>
        </td>
	</tr>
    <!--强制实名认证-->
	<tr>
		<td class="tdL">强制跳转实名认证</td>
	  	<td class="tdR">
            <input type="checkbox" name="force_cert" id="force_cert" class="switch" value="1"<?php echo ($switch['force']['cert'] == 1)?' checked':'';?>><label for="force_cert" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，在手机端点击【我的】进行跳转</span>
        </td>
	</tr>
    <!--手机端首页强制弹出个人隐私/注册条款-->
	<tr>
		<td class="tdL">手机端首页强制隐私/注册条款</td>
	  	<td class="tdR">
            <input type="checkbox" name="index_private" id="index_private" class="switch" value="1"<?php echo ($_INDEX['index_private'] == 1)?' checked':'';?>><label for="index_private" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，在手机端首页会弹出个人隐私/注册条款，【同意】后不再弹出，【不同意】每次打开都弹　　<img src="images/d2.gif"> <a class="btn size1" href="about.php?t=declara">修改隐私/注册条款</a></span>
        </td>
	</tr>

    <!--余额账户提现-->
	<tr>
		<td class="tdL">单身用户余额账户</td>
	  	<td class="tdR">
        <div>
		余额账户总开关 <input type="checkbox" name="ifmoney" id="ifmoney" class="switch" value="1"<?php echo ($_VIP['ifmoney'] == 1)?' checked':'';?>><label for="ifmoney" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>    <span class="tips">开启后，用户在前台将出现余额账户，关闭后隐藏余额账户</span>        
        </div>
        <div>
		余额提现折扣 <input name="rmb_tx_zknum"  type="text" class="W50 FVerdana" maxlength="4" value="<?php echo $_VIP['rmb_tx_zknum'];?>"><span class="tips">填1或小于1的小数，例如0.8，如果有用户提现1000元，实际只给他们800元，填1全额到账</span>
        </div>
        <div>
        提现列表选项 <input name="rmb_txlist" type="text" class="W300 FVerdana" maxlength="100" value="<?php echo @implode(",",json_decode($_VIP['rmb_txlist'],true));?>">　<span class="tips">说明：请以英文半角逗号隔开，如：<font class="blue">1,100,200,500,1000</font>，乘以折扣后最低1元，选项为1的整数倍，关闭提现请留空</span>
        </div>
        <div>
        充值列表选项 <input name="rmb_czlist" type="text" class="W300 FVerdana" maxlength="100" value="<?php echo @implode(",",json_decode($_VIP['rmb_czlist'],true));?>">　<span class="tips">说明：请以英文半角逗号隔开，如：<font class="blue">1,100,200,500,1000</font>，关闭充值请留空</span></div>
		</div>
        </td>
	</tr>

    <!--防骗/托设置-->
    <tr><th align="left" colspan="2" class="tiaose">防骗/防托设置　<span class="tips2 S12 C999">此功能主要是防止婚托，酒托或专业网络美女诈骗，如：资料登记的很漂亮，填个联系方式，传个假的美女照片，然后人就消失，坐等收鱼</span></th></tr>
	<tr>
		<td class="tdL">个人主页联系方式/聊天/打招呼入口显示需满足右侧认证条件</td>
	  	<td class="tdR">
			<input type="checkbox" name="chatHiContact_ifshow[]" id="chatHiContact_ifshow1" class="checkskin" value="mob"<?php echo (@in_array('mob',$switch['chatHiContact_ifshow']))?' checked':'';?>><label for="chatHiContact_ifshow1" class="checkskin-label"><i class="i1"></i><b class="W150">完成<?php echo RZtitle('mob');?></b></label>
			<input type="checkbox" name="chatHiContact_ifshow[]" id="chatHiContact_ifshow2" class="checkskin" value="identity"<?php echo (@in_array('identity',$switch['chatHiContact_ifshow']))?' checked':'';?>><label for="chatHiContact_ifshow2" class="checkskin-label"><i class="i1"></i><b class="W150">完成<?php echo RZtitle('identity');?></b></label>
			<input type="checkbox" name="chatHiContact_ifshow[]" id="chatHiContact_ifshow3" class="checkskin" value="photo"<?php echo (@in_array('photo',$switch['chatHiContact_ifshow']))?' checked':'';?>><label for="chatHiContact_ifshow3" class="checkskin-label"><i class="i1"></i><b class="W150">完成<?php echo RZtitle('photo');?></b></label>
			<input type="checkbox" name="chatHiContact_ifshow[]" id="chatHiContact_ifshow4" class="checkskin" value="store"<?php echo (@in_array('store',$switch['chatHiContact_ifshow']))?' checked':'';?>><label for="chatHiContact_ifshow4" class="checkskin-label"><i class="i1"></i><b class="W150">完成<?php echo RZtitle('store');?></b></label>
    		<div><span class="tips2">勾选选中后将进行触发判断，此为累加条件不影响其它设置，比如线下用户即使此处勾选也照样不显示</span></div>
            <div class="lineH150 tips2">
                <span class="S14 C000">显示风险提示</span> <input type="checkbox" name="chatHiContact_iftips" id="chatHiContact_iftips" class="switch" value="1"<?php echo ($switch['chatHiContact_iftips'] == 1)?' checked':'';?>><label for="chatHiContact_iftips" class="switch-label"><i></i><b>开启</b><b>关闭</b></label><br>
                <span style="margin-top:5px;display:inline-block">开启后个人主页将显示提示，如：此用户没有完成**认证，请谨慎联系，【提醒对方认证】等字样<br>点击【提醒对方认证】将自动发送通知消息给对方引导认证，如果上面条件全部不选【显示风险提示】将失效不显示</span>
            </div>
      </td>
	</tr>

    <!--文章设置-->
    <?php $WZ = json_decode($_ZEAI['WZ'],true);?>
    <tr><th align="left" colspan="2" class="tiaose">文章详情页设置</th></tr>
	<tr>
		<td class="tdL">顶部用户推荐</td>
	  	<td class="tdR">
            <input type="checkbox" name="wz_iftjU" id="wz_iftjU" class="switch" value="1"<?php echo ($WZ['iftjU'] == 1)?' checked':'';?>><label for="wz_iftjU" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
            <span class="tips">开启后，顶部会显示推荐用户列表，关闭隐藏；推荐规则：顶部菜单【运营管理】<img src="images/d2.gif">左侧【优质用户推荐】<img src="images/d2.gif"><?php echo '【推荐至'.$TG_set['navtitle'].'】';?><a class="btn size1" href="u_select.php?iftj=TG_xqk">进入推荐</a></span>
		</td>
    </tr>    
    
	<tr>
		<td class="tdL">打赏设置</td>
	  	<td class="tdR">
            <input type="checkbox" name="wz_ifpay" id="wz_ifpay" class="switch" value="1"<?php echo ($WZ['ifpay'] == 1)?' checked':'';?>><label for="wz_ifpay" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
            <span class="tips">开启后，在手机文章详情页会出现打赏按钮</span><br>
            打赏金额列表 <input name="wz_ifpay_num"  type="text" class="W200 FVerdana" maxlength="100" value="<?php echo $WZ['ifpay_num'];?>"> 元
            <span class="tips">说明：数字请以英文半角逗号隔开，如：<font class="blue">1,2,5,10</font>，用户会选对应的金额进行支付，这个费用直接入账官方账户</span>
		</td>
    </tr>    
	<tr>
		<td class="tdL">评论总开关</td>
	  	<td class="tdR">
            <input type="checkbox" name="wz_ifbbs" id="wz_ifbbs" class="switch" value="1"<?php echo ($WZ['ifbbs'] == 1)?' checked':'';?>><label for="wz_ifbbs" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
            <span class="tips">开启后，文章页将出现评论功能，关闭隐藏</span>
		</td>
    </tr>    
	<tr>
		<td class="tdL">评论审核开关</td>
	  	<td class="tdR">
            <input type="checkbox" name="wz_bbs_ifsh" id="wz_bbs_ifsh" class="switch" value="1"<?php echo ($WZ['bbs_ifsh'] == 1)?' checked':'';?>><label for="wz_bbs_ifsh" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
            <span class="tips">开启后，评论将需要审核才会显示，关闭后发表即显示</span>
		</td>
    </tr>
	<tr>
		<td class="tdL">底部推荐阅读</td>
	  	<td class="tdR">
            <input type="checkbox" name="wz_iftjWZ" id="wz_iftjWZ" class="switch" value="1"<?php echo ($WZ['iftjWZ'] == 1)?' checked':'';?>><label for="wz_iftjWZ" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> 
            <span class="tips">开启后，底部会显示置顶推荐文章列表，关闭隐藏</span>
		</td>
    </tr>    
    
    <!--活动设置-->
    <?php $party_joingrade = (empty($_VIP['party_joingrade']))?array():json_decode($_VIP['party_joingrade'],true);?>
    <tr><th align="left" colspan="2" class="tiaose">相亲活动设置</th></tr>
	<tr>
		<td class="tdL">报名参加活动用户等级</td>
	  	<td class="tdR">
		<?php if (is_array($urole) && count($urole)>0){
            foreach($urole as $RV){$grade = $RV['g'];//if($RV['f']==0)continue;?>
            	<input type="checkbox" name="party_joingrade[]" id="party_joingrade_<?php echo $grade;?>" class="checkskin" value="<?php echo $grade;?>"<?php echo (in_array($grade,$party_joingrade))?' checked':'';?>><label for="party_joingrade_<?php echo $grade;?>" class="checkskin-label"><i class="i1"></i><b class="W150"><?php echo uicon_grade_all($grade); ?> <font style="vertical-align:middle"><?php echo $RV['t'];?></font></b></label>
			<?php }
      }else{echo "<div class='nodatatipsS'>暂无用户组<br><br><a class='btn size1' href='urole.php'>新增用户组</a></div>";}?>
      <div><span class="tips2">只有勾选的才能报名参加活动，等级不够会自动跳转VIP升级页面，游客会自动跳转登录页</span></div>
      </td>
	</tr>
    
    
    <!--互换联系方式-->
    <tr><th align="left" colspan="2" class="tiaose">互换联系方式</th></tr>
	<tr><td class="tdL">互换次数</td><td align="left" class="tdR"><span>各等级相关互换次数请前往 <img src="images/d2.gif"> <a class="btn size1" href="urole.php">VIP套餐</a></span></td></tr>
	<tr><td class="tdL">前置条件(发起方+接收方)</td><td align="left" class="tdR">
		<style>
        .stepbox .stepli4{margin-top:5px}
        .stepbox .stepli4 li{height:32px;padding:5px 10px;float:left;margin:5px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:3px}
        .FVerdana{background-color:#fff}
        </style>
        <dd class="stepbox" id="stepbox4">
            <div class="stepli4">
                <?php
                $hh_dataARR    = explode(',',$_VIP['hh_data']);
                $hh_data_pxARR = explode(',',$_VIP['hh_data_px']);
                if (count($hh_data_pxARR) >= 1 && is_array($hh_data_pxARR)){
                    foreach ($hh_data_pxARR as $k=>$V) {?>
                        <li><input type="checkbox" name="hh_data[]" id="hh_data_<?php echo $V;?>" class="checkskin hh" value="<?php echo $V;?>"<?php echo (in_array($V,$hh_dataARR))?' checked':'';?>><label for="hh_data_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i>
                        <b class="<?php ($V == 'bfb')?'W200':'W100';?>"><?php echo chatContact_data_title($V);?>
                        <?php if ($V == 'bfb'){?> <input name="hh_bfb_num" type="text" class="W50 FVerdana" maxlength="3" value="<?php echo intval($_VIP['hh_bfb_num']);?>"> %<?php }?>
                        </b></label></li>
                        <?php
                    }
                }
                ?>
            </div>
            <div class="clear"></div>
        </dd>
        <font class="S12 C999">可以按住不放拖动项目调整前后顺序，系统检查规则(从左到右)，选中请勾选，选中将进行验证和检查，不符合将不能打招呼（自动弹出引导页面完善），如全不选将忽略检查</font>
        <input name="hh_data_px" id="hh_data_px" type="hidden" value="<?php echo $_VIP['hh_data_px'];?>">
    </td></tr>


    <!--评价留言-->
    <tr><th align="left" colspan="2" class="tiaose">个人主页评价留言（手机端前台）</th></tr>
    <tr><td class="tdL">评价总开关</td><td align="left" class="tdR">
    <input type="checkbox" class="switch" id="ubbs" <?php echo (@in_array('ubbs',$navarr))?' checked':'';?> disabled><label for="ubbs" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>
    <span>　请前往 <img src="images/d2.gif"> <a class="btn size1" href="var.php?t=nav">模块导航</a></span>
    </td></tr>
	<?php $user_bbs_add_authARR=explode(',',$user_bbs['add_auth']);?>
	<tr><td class="tdL">发起评价前置条件</td><td align="left" class="tdR">
        <input type="checkbox" name="user_bbs_add_auth[]" id="hh2" class="checkskin" value="hh2"<?php echo (in_array('hh2',$user_bbs_add_authARR))?' checked':'';?>><label for="hh2" class="checkskin-label"><i class="i1"></i><b class="W150">双方成功互换联系方法</b></label>
        <input type="checkbox" name="user_bbs_add_auth[]" id="chat2" class="checkskin" value="chat2"<?php echo (in_array('chat2',$user_bbs_add_authARR))?' checked':'';?>><label for="chat2" class="checkskin-label"><i class="i1"></i><b class="W150">双方私信聊过天</b></label>
        <input type="checkbox" name="user_bbs_add_auth[]" id="gz2" class="checkskin" value="gz2"<?php echo (in_array('gz2',$user_bbs_add_authARR))?' checked':'';?>><label for="gz2" class="checkskin-label"><i class="i1"></i><b class="W150">双方互相关注</b></label>
        <input type="checkbox" name="user_bbs_add_auth[]" id="ubbsvip" class="checkskin" value="vip"<?php echo (in_array('vip',$user_bbs_add_authARR))?' checked':'';?>><label for="ubbsvip" class="checkskin-label"><i class="i1"></i><b class="W150">VIP用户</b></label>
        <br><span class="tips2">勾选后会进行检查，都不勾选则全部用户都可以评价留言</span>
    </td></tr>
    <tr><td class="tdL">评价审核开关</td><td align="left" class="tdR">
    <input type="checkbox" class="switch" name="user_bbs_add_ifsh" value="1" id="user_bbs_add_ifsh" <?php echo ($user_bbs['add_ifsh'] == 1)?' checked':'';?>><label for="user_bbs_add_ifsh" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>　<span class="tips2">开启后，评价需要审核才会公开显示，关闭后发表即显示</span>
    </td></tr>
	<tr><td class="tdL">评价显示</td>
    <td align="left" class="tdR">
        <input type="radio" name="user_bbs_showkind" id="user_bbs_showkind0" class="radioskin" value="0"<?php echo ($user_bbs['showkind'] == 0)?' checked':'';?>>
        <label for="user_bbs_showkind0" class="radioskin-label"><i class="i1"></i><b class="W100 S14">隐藏</b></label>
        <input type="radio" name="user_bbs_showkind" id="user_bbs_showkind1" class="radioskin" value="1"<?php echo ($user_bbs['showkind'] == 1)?' checked':'';?>>
        <label for="user_bbs_showkind1" class="radioskin-label"><i class="i1"></i><b class="W100 S14">用户评价</b></label>
        <input type="radio" name="user_bbs_showkind" id="user_bbs_showkind2" class="radioskin" value="2"<?php echo ($user_bbs['showkind'] == 2)?' checked':'';?>>
        <label for="user_bbs_showkind2" class="radioskin-label"><i class="i1"></i><b class="W100 S14">红娘评价</b></label>
        <input type="radio" name="user_bbs_showkind" id="user_bbs_showkind3" class="radioskin" value="3"<?php echo ($user_bbs['showkind'] == 3)?' checked':'';?>>
        <label for="user_bbs_showkind3" class="radioskin-label"><i class="i1"></i><b class="W150 S14">用户+红娘评价</b></label>
    </td></tr>
    <!---->
</table>
<input name="submitok" type="hidden" value="cache_switch">
<input name="uu" id="uu" type="hidden" value="<?php echo $session_uid;?>">
<input name="pp" id="pp" type="hidden" value="<?php echo $session_pwd;?>">
<br><br><br><br><br>
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
<script>
function drag_init() {(function (){[].forEach.call(stepbox.getElementsByClassName('stepli'),   function (el){Sortable.create(el,{group: 'zeai_reg',animation:150});});})();}drag_init();
function drag_init2(){(function (){[].forEach.call(stepbox2.getElementsByClassName('stepli2'), function (el){Sortable.create(el,{group: 'zeai_reg2',animation:150});});})();}drag_init2();
function drag_init3(){(function (){[].forEach.call(stepbox3.getElementsByClassName('stepli3'), function (el){Sortable.create(el,{group: 'zeai_reg3',animation:150});});})();}drag_init3();
function drag_init4(){(function (){[].forEach.call(stepbox4.getElementsByClassName('stepli4'), function (el){Sortable.create(el,{group: 'zeai_reg4',animation:150});});})();}drag_init4();

	save.onclick = function(){
        var DATAPX=[];
        zeai.listEach('.chatContact',function(obj){DATAPX.push(obj.value);});
        chatContact_data_px.value=DATAPX.join(",");
        var DATAPX2=[];
        zeai.listEach('.viewhomepage',function(obj){DATAPX2.push(obj.value);});
        viewhomepage_data_px.value=DATAPX2.join(",");
        var DATAPX3=[];
        zeai.listEach('.hi',function(obj){DATAPX3.push(obj.value);});
        hi_data_px.value=DATAPX3.join(",");
        var DATAPX4=[];
        zeai.listEach('.hh',function(obj){DATAPX4.push(obj.value);});
        hh_data_px.value=DATAPX4.join(",");
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){
			var rs=zeai.jsoneval(e);zeai.msg(0);zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	}
	if (!zeai.empty(o('wxbgpicdel')))o('wxbgpicdel').onclick = function(){delpic('cache_config_del_wxbgpic');}
	if (!zeai.empty(o('wapbgpicdel')))o('wapbgpicdel').onclick = function(){delpic('cache_config_del_wapbgpic');}
	function delpic(submitok){
		zeai.confirm('确认要删除么？',function(){
			zeai.msg('删除中...',{time:20});
			zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:submitok,uu:uu.value,pp:pp.value}},function(e){
				var rs=zeai.jsoneval(e);
				zeai.msg(0);
				if (rs.flag == 1){location.reload(true);}else{zeai.alert(rs.msg);}
			});
		});
	}
</script>

<!----------------扩展---------------->
<?php }elseif($t == 4){ ?>

<?php }?>
</form>
<script>
<?php if(ifint($top)){ ?>
zeai.setScrollTop(<?php echo $top;?>);
<?php }?>
</script>
<?php
require_once 'bottomadm.php';
function reg_data_title($var) {
	switch ($var){
		case 'sex':$t = '性别';break;
		case 'birthday':$t = '生日';break;
		case 'areaid':$t = '地区';break;
		case 'heigh':$t = '身高';break;
		case 'weigh':$t = '体重';break;
		case 'edu':$t = '学历';break;
		case 'love':$t = '婚况';break;
		case 'job':$t = '职业';break;
		case 'car':$t = '购车';break;
		case 'house':$t = '住房';break;
		case 'truename':$t = '姓名';break;
		case 'nickname':$t = '昵称';break;
		case 'weixin':$t = '微信';break;
		case 'photo_s':$t = '照片';break;
		case 'mate':$t = '择偶要求';break;
		case 'aboutus':$t = '自我介绍';break;
		case 'child':$t = '子女情况';break;
		case 'marrytime':$t = '结婚时间';break;
		case 'pay':$t = '月收入';break;
		case 'identitynum':$t = '身份证号';break;
		case 'kefu':$t = '客服红娘';break;
		case 'parent':$t = '父母亲友帮征婚';break;
		case 'area2id':$t = '户籍';break;
	}
	return $t;
}
function chatContact_data_title($var) {
	switch ($var){
		case 'rz_mob':$t = '完成手机认证';break;
		case 'rz_identity':$t = '完成实名认证';break;
		case 'rz_photo':$t = '完成真人认证';break;
		case 'rz_store':$t = '完成到店认证';break;
		case 'bfb':$t = '资料完善度达';break;
		case 'photo':$t = '有头像且已审';break;
		case 'sex':$t = '对方必须异性';break;
		case 'mysex1':$t = '发送方为男性';break;
		case 'mysex2':$t = '发送方为女性';break;
		case 'vip':$t = 'VIP用户';break;
		case 'grade':$t = '用户组';break;
		case 'sign':$t = '签定承诺书';break;
	}
	return $t;
}
?>